package com.bdqn.shequ.modules.sys.service.impl;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bdqn.shequ.common.utils.PageUtils;
import com.bdqn.shequ.common.utils.Query;

import com.bdqn.shequ.modules.sys.dao.TcConventionCenterDao;
import com.bdqn.shequ.modules.sys.entity.TcConventionCenterEntity;
import com.bdqn.shequ.modules.sys.service.TcConventionCenterService;


@Service("tcConventionCenterService")
public class TcConventionCenterServiceImpl extends ServiceImpl<TcConventionCenterDao, TcConventionCenterEntity> implements TcConventionCenterService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TcConventionCenterEntity> page = this.page(
                new Query<TcConventionCenterEntity>().getPage(params),
                new QueryWrapper<TcConventionCenterEntity>().orderByDesc("ID")
        );

        return new PageUtils(page);
    }

    @Override
    public List<String> selectConventionName() {
        List<String> list = this.baseMapper.selectConventionName();
        return list;
    }

}
